<%@ include file="/common/include.jsp"%>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			<jsp:param name="_useCalendar" value="true"/>
			<jsp:param name="_useUpload" value="true"/>
		</jsp:include>
		<script language="javascript">
			//当前页不显示消息通知
			_doNotShowMessageNotice = true;	
			function answer(createUserId,createUserName,messageTitle)
			{
				window.location.href="listReplyMessage.do?userId="+createUserId+"&userName="+createUserName+"&messageTitle="+messageTitle;
			}
			//调用foot窗口，刷新未读消息数
			$(document).ready(function(){
				window.top.bottomFrame.listNmMessage();
			});
			function goBack()
			{
				window.location.href="listMessage.do";
			}
		</script>

		<title>查看消息</title>
	</head>
	<body>
		<form action="updateMessage.do" name="form1" method="post" enctype="multipart/form-data">
			<div id="body_div">
				<w:ShowTitle name="消息查看">
					<w:TitleButton funcName="回复" onClickFunction="answer('${sysMessage.createUserId}','${sysMessage.createUserName}','${sysMessage.messageTitle}')" urlImg="${ctx}/images/main/save.png" funcType="link" />
					<w:TitleButton funcName="返回" onClickFunction="goBack()" urlImg="${ctx}/images/main/back.png" funcType="link" />
				</w:ShowTitle>
				<input name="sysMessage.messageId" type="hidden" value="${sysMessage.messageId}"/>
				<input name="sysMessage.messageType" type="hidden" value="${sysMessage.messageType}"/>
				<div id="body_content">
					<table width="100%">
						<tr>
							<td class="right_align">
								消息标题
							</td>
							<td class="left_align">
								${sysMessage.messageTitle}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								录入日期
							</td>
							<td class="left_align">
								<fmt:formatDate value="${sysMessage.createDate}" pattern="yyyy-MM-dd"/>
							</td>
						</tr>
						<tr>
							<td class="right_align">
								消息内容
							</td>
							<td colspan="3" class="left_align">
								${sysMessage.messageContent}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								备注
							</td>
							<td colspan="3" class="left_align">
								${sysMessage.remark}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								附件
							</td>
							<td colspan="3" class="left_align">
								<w:uploadFile isList="true" isAdd="false" beanName="sysMessage" belongId="${sysMessage.messageId}" allowDeletions="false" folder="sysMessage"></w:uploadFile>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</form>
	</body>
</html>
